prefix=@prefix@
CFLAGS = @CFLAGS@

CFLAGS += -I. -I..

LIBDIR  = $(prefix)/lib/unicon
LD      = gcc $(CFLAGS)
INSTALL = install -c

GROUP = root

PROGS = cit2tit tit2cit

all: $(PROGS)

cit2tit: 
	$(LD) -o cit2tit cit2tit.c HZutil.c 

tit2cit: 
	$(LD) -o tit2cit tit2cit.c HZutil.c 

clean:
	rm -f $(PROGS)
	rm -f *.o core *~ *.bak

distclean:clean
	rm -f Makefile tags TAGS

install: all
	mkdir -p $(LIBDIR)/bin
	$(INSTALL) -o root -g $(GROUP) -m 755 -d $(LIBDIR)/bin
	$(INSTALL) -s -o root -g $(GROUP) -m 755 tit2cit $(LIBDIR)/bin
	$(INSTALL) -s -o root -g $(GROUP) -m 755 cit2tit $(LIBDIR)/bin



